package com.project.system.domain.entity;

import com.project.common.domain.po.DbBase;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * @author : [chg]
 * @className : EmployeeSalaryEffective
 * @description : 员工薪资生效日期实体
 * @createTime : [2025/7/9 11:30]
 */
@Entity
@Data
@Table(name = "tb_employee_salary_effective")
@org.hibernate.annotations.Table(appliesTo = "tb_employee_salary_effective", comment = "员工薪资生效日期")
public class HrEmployeeSalaryEffective extends DbBase {
    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '用户ID'")
    private Long userId; // 用户ID
    
    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '员工详细ID'")
    private Long employeeDetailId; // 员工详细ID
    
    @Column(columnDefinition = "bigint DEFAULT NULL COMMENT '薪资ID'")
    private Long salaryId; // 薪资ID
    
    @Column(columnDefinition = "datetime DEFAULT NULL COMMENT '生效日期'")
    private LocalDateTime effectiveDate; // 生效日期

    @Column(columnDefinition="int DEFAULT NULL COMMENT '处理状态（0-未处理,1-已处理）'")
    private Integer processed;
}